<?php
namespace App\Domain\User\V1;

use App\Model\User\V1\UserModel;
use App\Common\MyDomain;

class UserDomain extends MyDomain {

    public function index($params) {
        /* \App\showException(0, '用户被锁定');
        var_dump($params['uid']); */
        $model = new UserModel();
        $id = $model->index();
        if(!$id) \App\showException(0, '用户不存在');
        return array('id' => 1, 'username' => 'JiangYongWei', 'age' => 25);
    }
}
